package com.qysoft.dtkj.dtkj_gl.config;

import com.jfinal.config.Routes;
import com.qysoft.dtkj.dtkj_gl.actions.cjgl.CJGLAction;
import com.qysoft.dtkj.dtkj_gl.actions.common.CommonAction;
import com.qysoft.dtkj.dtkj_gl.actions.kjcj.KJCJAction;
import com.qysoft.dtkj.dtkj_gl.actions.widget.WidgetAction;
import com.qysoft.dtkj.dtkj_gl.actions.xtwh.JGGLAction;
import com.qysoft.dtkj.dtkj_gl.actions.xtwh.JSGLAction;
import com.qysoft.dtkj.dtkj_gl.actions.xtwh.RYGLAction;
import com.qysoft.dtkj.dtkj_gl.actions.xtwh.ZYGLAction;
import com.qysoft.dtkj.dtkj_gl.actions.zglj.ZGLJAction;
import com.qysoft.rapid.consts.RapidConsts;
import com.qysoft.rapid.core.Rapid;
import com.qysoft.rapid.core.RapidConifg;

public class DTKJGLConfig extends RapidConifg {

	@Override	
	public void configAction(Routes me) { 
		me.add("/common", CommonAction.class); 
		me.add("/xtwh/jggl",JGGLAction.class);
		me.add("/xtwh/rygl",RYGLAction.class);
		me.add("/xtwh/zygl",ZYGLAction.class);
		me.add("/xtwh/jsgl",JSGLAction.class);
		//跨界采集
		me.add("/kjcj", KJCJAction.class);
		//采集管理
		me.add("/cjgl",CJGLAction.class);
		me.add("/widget",WidgetAction.class); 
		
		// 征管链接
		me.add("/zglj", ZGLJAction.class);
	} 

	@Override
	public int configDbTool() {
		return RapidConsts.DB_TOOL_MYBATIS;
	}
  
	@Override
	public int configDbType() {
		return RapidConsts.DB_TYPE_ORACLE;
	} 
		
	@Override
	public String configErrorMSg() {
		return "系统出错，请联系管理员！";
	}

	@Override
	public String configSysName() {
		return "大同国税跨界数据管理平台";
	}
	
	public static void main(String[] args) throws Exception {
		Rapid.getRapidInstance().start("webapp", 7777, "/", 5);
	}
	

}
